#python基础   第七次作业

#1.定义一个函数，输入一个序列(序列元素是同种类型)，判断序列是顺序还是逆序，顺序输出UP，逆序输出DOWN，否则输出None

def fun(*args):
    li = list(args)
    if(sorted(li)==li):
        print('顺序序列UP')
    elif(sorted(li, reverse=True)==li):
        print('逆序序列DOWN')
    else:
        print('None')

str = '1','4','2','8','7'
str1 ='1','2','9'
t = (1,2,3)
t1 = (2,3,5,1)
t2 = (3,2,1)
li = ['1','2','9']

fun(li)

